package com.mysteel.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mysteel.common.utils.PageUtils;
import com.mysteel.product.entity.AttrGroupEntity;
import com.mysteel.product.vo.AttrGroupWithAttrsVo;
import com.mysteel.product.vo.web.SkuItemVo;
import com.mysteel.product.vo.web.SpuBaseAttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author xc
 * @email xcremote@163.com
 * @date 2020-12-10 16:50:04
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    /**
     * 根据分类ID查询分组信息及分组下的所有属性信息
     * @param catelogId
     * @return
     */
    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);

    /**
     * 查出当前spuId下的属性分组及属性信息
     * @param spuId
     * @return
     */
    List<SpuBaseAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

